import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
import { WsAdapter } from './adapter/ws.adapter';




async function bootstrap() {
  
  const app = await NestFactory.create(AppModule);
  app.useWebSocketAdapter(new WsAdapter(app));
  await app.listen(3000);
  console.log(`服务启动成功！监听端口为3000，请访问http://localhost:3000`);
}
bootstrap();
